package org.dfzt.modules.online.cgform.model;

public class OnlColumn {
    private String title;
    private String dataIndex;
    private String align;

    public void setTitle(String title) {
        this.title = title;
    }

    private String customRender;
    private ScopedSlots scopedSlots;
    private String hrefSlotName;

    public void setDataIndex(String dataIndex) {
        this.dataIndex = dataIndex;
    }

    public void setAlign(String align) {
        this.align = align;
    }

    public void setCustomRender(String customRender) {
        this.customRender = customRender;
    }

    public void setScopedSlots(ScopedSlots scopedSlots) {
        this.scopedSlots = scopedSlots;
    }

    public void setHrefSlotName(String hrefSlotName) {
        this.hrefSlotName = hrefSlotName;
    }

    public void setSorter(boolean sorter) {
        this.g = sorter;
    }

    @Override
    public boolean equals(Object o) {
        if (o == this) return true;
        if (!(o instanceof OnlColumn)) return false;
        OnlColumn b1 = (OnlColumn) o;
        if (!b1.a(this)) return false;
        String str1 = getTitle(), str2 = b1.getTitle();
        if ((str1 == null) ? (str2 != null) : !str1.equals(str2)) return false;
        String str3 = getDataIndex(), str4 = b1.getDataIndex();
        if ((str3 == null) ? (str4 != null) : !str3.equals(str4)) return false;
        String str5 = getAlign(), str6 = b1.getAlign();
        if ((str5 == null) ? (str6 != null) : !str5.equals(str6)) return false;
        String str7 = getCustomRender(), str8 = b1.getCustomRender();
        if ((str7 == null) ? (str8 != null) : !str7.equals(str8)) return false;
        ScopedSlots e1 = getScopedSlots(), e2 = b1.getScopedSlots();
        if ((e1 == null) ? (e2 != null) : !e1.equals(e2)) return false;
        String str9 = getHrefSlotName(), str10 = b1.getHrefSlotName();
        return ((str9 == null) ? (str10 != null) : !str9.equals(str10)) ? false : (!(a() != b1.a()));
    }

    protected boolean a(Object paramObject) {
        return paramObject instanceof OnlColumn;
    }


    @Override
    public String toString() {
        return "OnlColumn(title=" + getTitle() + ", dataIndex=" + getDataIndex() + ", align=" + getAlign() + ", customRender=" + getCustomRender() + ", scopedSlots=" + getScopedSlots() + ", hrefSlotName=" + getHrefSlotName() + ", sorter=" + a() + ")";
    }


    public String getTitle() {
        return this.title;
    }

    public String getDataIndex() {
        return this.dataIndex;
    }

    public String getAlign() {
        return this.align;
    }


    public String getCustomRender() {
        return this.customRender;
    }

    public ScopedSlots getScopedSlots() {
        return this.scopedSlots;
    }


    public String getHrefSlotName() {
        return this.hrefSlotName;
    }

    private boolean g = false;

    public boolean a() {
        return this.g;
    }


    public OnlColumn(String paramString1, String paramString2) {
        this.align = "center";
        this.title = paramString1;
        this.dataIndex = paramString2;
    }

    public OnlColumn() {
    }
}
